1
00:00:01,110 --> 00:00:09,210
Don't look at a feature that was introduced in Jollof by Karl Marx before Jolliffe, I meant it could only

2
00:00:09,210 --> 00:00:12,130
be invoked with a fixed number of arguments.

3
00:00:12,480 --> 00:00:18,030
That is you can have a method that has three parameters and so you can look exactly at the arguments.

4
00:00:18,900 --> 00:00:24,230
But this is not the case from giallo 5 onwards from Delphi.

5
00:00:24,360 --> 00:00:30,900
Methods can have a special type of parameter called quarks, which is shorthand for variable-length arguments

6
00:00:32,760 --> 00:00:37,740
and as the name suggests, this parameter can become a variable number of arguments.

7
00:00:37,950 --> 00:00:44,340
There is even a single parameter that can take 0 or 1 or even more than one

8
00:00:44,420 --> 00:00:45,560
argument as in.

9
00:00:45,960 --> 00:00:50,020
It also has to be the last parameter of the method.

10
00:00:50,040 --> 00:00:52,930
It can also be the only parameter of the method.

11
00:00:53,280 --> 00:00:58,260
So it can be the only parameter of a method or if the subject has more

12
00:00:58,260 --> 00:01:02,190
of a parameter, then the broadest experimenter must be the last.

13
00:01:02,190 --> 00:01:09,600
Now let's look at the syntax of a broad experimenter and also have what the syntax looks like in most

14
00:01:09,620 --> 00:01:11,500
of the three points are ellipses.

15
00:01:11,550 --> 00:01:18,450
Following the parameter type and here is an example, as you can see the type of

16
00:01:18,450 --> 00:01:21,220
parameter and is followed by three dots.

17
00:01:21,310 --> 00:01:30,780
Now when it comes to any location the corresponding argument can be an array of any size or it can also be

18
00:01:30,780 --> 00:01:35,310
a sequence of any number of arguments separated by commas.

19
00:01:35,310 --> 00:01:41,340
As you can see, the values run but are simply being passed as comma separated values,

20
00:01:41,340 --> 00:01:44,480
because the compiler can automatically merge them into an array.

21
00:01:45,000 --> 00:01:50,040
So basically the arguments are passed as an array, whether explicitly or not.

22
00:01:50,340 --> 00:01:54,610
This also means that the blot on experimenter in the method definition is also an order.

23
00:01:55,080 --> 00:02:00,400
So when we compile the compiler automatically converts what I passed ometer into an array.

24
00:02:00,990 --> 00:02:07,050
Thus, in the method, the watch parameter is treated as any normality.

25
00:02:07,380 --> 00:02:10,530
Finally, the last argument can be omitted altogether.

26
00:02:11,010 --> 00:02:17,310
Therefore, in one example, the method is invoked with just the Boolean argument internally and the

27
00:02:17,310 --> 00:02:20,360
MPO will be passed without the block barometer.

28
00:02:20,370 --> 00:02:23,350
So basically the number of parameters has been fixed.

29
00:02:23,520 --> 00:02:29,580
It's just that the parts parameter provides the flexibility of passing 0 or more argument values.

30
00:02:30,570 --> 00:02:37,200
It just gives the illusion that the method is infinitely overloaded.

31
00:02:37,520 --> 00:02:38,850
Restrictions dumps.

32
00:02:38,850 --> 00:02:43,920
I just want to reiterate that the water taster should be the last barometer when the

33
00:02:43,920 --> 00:02:51,030
method has more than one parameter and the restriction is that a metric cannot be more than one product barometer.

34
00:02:51,640 --> 00:02:53,240
HE IS WELL.

35
00:02:53,850 --> 00:03:00,630
Then the question itself is why products can't just take an array as a parameter, the

36
00:03:00,630 --> 00:03:03,690
which can also really lead to moral values.

37
00:03:04,200 --> 00:03:05,500
Of course we can do that.

38
00:03:05,730 --> 00:03:11,740
But the main advantage of the products is that it provides us with a more flexible and non-flexible rock mechanism.

39
00:03:13,860 --> 00:03:16,000
That is, if you don't know how many values ​​to pass.

40
00:03:16,050 --> 00:03:22,770
You can simply pass the mask coal mine operator values and if there is nothing to pass

41
00:03:22,770 --> 00:03:24,590
you simply don't need to pass anything.

42
00:03:24,780 --> 00:03:30,210
That is you don't have to pass null in an empty threat in it the compiler automatically passes an empty threat.

43
00:03:31,110 --> 00:03:37,890
So this is just cleaner syntax because if you have a large number of values to pass,

44
00:03:37,890 --> 00:03:40,870
just put them together in an array and pass it to them.

45
00:03:41,160 --> 00:03:43,250
So this is the main advantage of blocks.

46
00:03:43,260 --> 00:03:49,350
This gives us a simpler and more flexible invocation mechanism.

47
00:03:49,350 --> 00:03:54,420
There is a method called Print def which was introduced in Jollof. I understood a very

48
00:03:54,420 --> 00:03:55,910
good to use Bartok's.

49
00:03:56,100 --> 00:04:01,260
It is basically used to print formatted text and disseminate L.N. printing and then statements

50
00:04:01,260 --> 00:04:02,750
that we already know.

51
00:04:03,120 --> 00:04:09,180
The first parameter is the text to append, while the second is not the x parameter type of the second

52
00:04:09,180 --> 00:04:14,050
parameter here is the object which is a class in Java and we can see this later.

53
00:04:14,670 --> 00:04:16,370
Let's look at this example in localization.

54
00:04:16,410 --> 00:04:21,600
This is printing data, but here the first argument is the text to be printed.

55
00:04:21,880 --> 00:04:26,550
Well second and third arguments correspond to the warhawks parameter.

56
00:04:26,550 --> 00:04:30,010
You can also see three dead symbols in the first argument.

57
00:04:30,180 --> 00:04:36,300
Basically, during execution, the printf method will replace the three dead symbols with three values

58
00:04:36,300 --> 00:04:42,830
of argument 1 1 and 1978, which are the pastor's input to the experimenter.

59
00:04:42,870 --> 00:04:47,220
So basically, one does both placeholders here.

60
00:04:47,220 --> 00:04:52,180
So this is a good example from the Java library itself.

61
00:04:52,200 --> 00:04:55,230
Next, we know that this is a main method definition.

62
00:04:55,860 --> 00:05:03,710
Does not block is perfectly valid to replace the input array parameter than water barometer.

63
00:05:03,820 --> 00:05:09,120
Next, there are certain rules that we need to be out of when it comes to using the broad method.

64
00:05:09,120 --> 00:05:10,500
as an overloaded method.

65
00:05:11,430 --> 00:05:14,280
Let's look at the first rule using an example.

66
00:05:15,180 --> 00:05:18,820
Let's see if we have this method that we call foo.

67
00:05:19,470 --> 00:05:24,430
So we can't have an overloaded non-God method that looks like this.

68
00:05:24,720 --> 00:05:30,680
Therefore it would be an invalid request as you can see the signature is exactly identical to Savatage.

69
00:05:30,770 --> 00:05:34,570
Barometer is simply a matrix for.

70
00:05:35,370 --> 00:05:41,280
Then if you have a bunch of overloaded methods and if one of them is a wad oximeter, in

71
00:05:41,290 --> 00:05:46,050
Then, making the method call, the block method will be the last one to be matched.

72
00:05:47,130 --> 00:05:48,700
Let's actually look at a simpler slack.

73
00:05:48,700 --> 00:05:55,880
This second rule variegata method will be the last one to be matched to Spoonman.

74
00:05:56,010 --> 00:05:58,720
That's how I was added to the base class.

75
00:05:59,040 --> 00:06:04,680
And since there are overloaded methods, they both have the same name and were named S-box, since

76
00:06:04,830 --> 00:06:09,010
which is very much a demonstration of Arc and is also taxing them.

77
00:06:09,030 --> 00:06:11,410
So when it blocks or whatever.

78
00:06:11,670 --> 00:06:14,430
OK, so those are the two methods.

79
00:06:14,480 --> 00:06:16,590
Let's look at the input parameters here.

80
00:06:16,600 --> 00:06:24,330
So this one doesn't have a parameter ox so it has a boolean parameter in three regular parameters.

81
00:06:24,900 --> 00:06:27,180
The second is a warhawks method.

82
00:06:27,240 --> 00:06:31,240
The second method has the parameter x so it has a boolean parameter.

83
00:06:31,320 --> 00:06:33,730
And here is the what x parameter.

84
00:06:33,870 --> 00:06:38,500
Okay and here we are printing in the first meter we are saying inside quarks or not.

85
00:06:38,520 --> 00:06:42,860
But without what in X and the second we are saying insert Warlock or not.

86
00:06:42,900 --> 00:06:44,370
But with what ARX.

87
00:06:44,380 --> 00:06:48,180
OK and we are also printing the length of the input parameter.

88
00:06:48,210 --> 00:06:52,010
Okay, since this is a matrix that we are printing.

89
00:06:52,220 --> 00:06:55,810
OK, now let's look at the invocation instructions here.

90
00:06:55,980 --> 00:06:57,950
So we have three mission statements invoked.

91
00:06:58,180 --> 00:07:03,480
OK, one of them is passing and ralliers one through 3 and the second one is passing

92
00:07:03,690 --> 00:07:08,660
for one to eight values ​​here and the fourth one is just passing the boolean argument.

93
00:07:08,740 --> 00:07:16,440
OK and in the first case we get frustrated as we discussed earlier in the first place trying to find a match

94
00:07:16,440 --> 00:07:19,200
exact, because an exact match exists.

95
00:07:19,340 --> 00:07:23,400
A boolean in bluesman 2:59 fits here.

96
00:07:23,490 --> 00:07:29,620
Therefore, in this case, the first method order is invoked in the second and third cases.

97
00:07:29,670 --> 00:07:36,090
Since there is no exact match, the second overloaded method will be chosen, which is a white box that is

98
00:07:36,090 --> 00:07:37,110
a warhawks method.

99
00:07:37,170 --> 00:07:43,140
OK hon will be the length of the array in this case it would be 8 iron in the second case where

100
00:07:43,140 --> 00:07:44,970
in the last example it would be zero.

101
00:07:45,160 --> 00:07:48,660
OK, so let's go ahead and compile and run this.

102
00:07:48,690 --> 00:07:52,120
So I'm in the base directory.

103
00:07:52,910 --> 00:08:00,180
OK, so as you can see here with the first invocation is inserted, but our very, but without what varargs.

104
00:08:00,300 --> 00:08:06,360
So that's the first method and for the second invocation where you are passing 8 separate ralliers

105
00:08:06,360 --> 00:08:07,060
by commas.

106
00:08:07,170 --> 00:08:09,170
So it's in lateral overload.

107
00:08:09,230 --> 00:08:14,190
Read, watch the lines of the array at the end where you are on the bench

108
00:08:14,190 --> 00:08:17,950
passing just a boolean in Bernd's zero as the last one.

109
00:08:18,030 --> 00:08:20,100
OK, so that's about it.

110
00:08:20,100 --> 00:08:24,630
So, this is the retrospective autoloading feature of the oximeter.

111
00:08:24,690 --> 00:08:26,460
OK, so go ahead and play with it.

112
00:08:26,460 --> 00:08:30,050
You can also pass arrays here instead of just calling my separate values.

113
00:08:30,120 --> 00:08:36,120
So just go ahead and play with it and you can also find the updated program and features section.

114
00:08:36,720 --> 00:08:37,300
All is well then.

115
00:08:37,320 --> 00:08:38,670
Thanks.


